package com.nation.serviceImpl;

import com.nation.dao.RelationshipDao;
import com.nation.domain.VInternationalAndRelationship;
import com.nation.service.RelationshipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sun.security.x509.RDN;

import java.util.List;
import java.util.Map;

/**
 * Created by dqd on 2017/11/4.
 */
@Service
public class RelationshipServiceImpl implements RelationshipService{
    @Autowired
    private RelationshipDao RelationshipDao;
    @Override
    public List<VInternationalAndRelationship> findAll() {
        return RelationshipDao.findAll();
    }

    @Override
    public VInternationalAndRelationship findByCountryCode(String country_code) {
        return RelationshipDao.findByCountryCode(country_code);
    }

    @Override
    public Boolean update(VInternationalAndRelationship vInternationalAndRelationship) {
        return RelationshipDao.update(vInternationalAndRelationship);
    }

    @Override
    public List<VInternationalAndRelationship> findByLimit(Map<String, Object> map) {
        return RelationshipDao.findByLimit(map);
    }

    @Override
    public Boolean insert(VInternationalAndRelationship vInternationalAndRelationship) {
        return RelationshipDao.insert(vInternationalAndRelationship);
    }

    @Override
    public List<VInternationalAndRelationship> findByCondition(Map<String, Object> map) {
        return RelationshipDao.findByCondition(map);
    }

    @Override
    public Boolean delete(String pk) {
        return RelationshipDao.delete(pk);
    }
}
